package org.pan.domain.enums;

/**
 * 用户当前状态
 *
 * Created by panmingzhi on 2015/12/25.
 */
public enum CardUserStateEnum {
	OnJob, OffJob,Retired,All;

	
	private static String ONJOB = "在职";
	private static String OFFJOB = "离职";
	private static String RETIRED = "退休";
	private static String ALL = "全部";

	public static String parse(CardUserStateEnum cardUserStateEnum) {
		switch (cardUserStateEnum) {
		case OnJob:
			return ONJOB;
		case OffJob:
			return OFFJOB;
		case Retired:
			return RETIRED;
		case All:
			return ALL;
		default:
			return "";
		}
	}
	
	public String toString(){
		return parse(this);
	}
	
}
